from django import forms

class LoginForm(forms.Form):
    username = forms.CharField(max_length = 16, min_length = 3)
    password = forms.PasswordInput(max_length = 16, min_length = 6)
    
    def clean_password(self):
        password = self.cleaned_data['password']
        return password